#!/bin/sh

NAME=Distributed_Streaming_Join_VLDB14

rm $NAME.pdf
if [ -f $NAME.pdf ]; then
	echo "Error: PDF file is in use"
	exit -1
fi

latex $NAME.tex
bibtex $NAME
latex $NAME.tex
latex $NAME.tex
dvips -P pdf -t letter -o $NAME.ps $NAME.dvi
ps2pdf $NAME.ps $NAME.pdf

sh delete_tmp.sh

exit 0
